exit;

#调用大模型

curl -X POST -H "Content-Type: application/json" \
-d '{
    "prompt": "请用Python写一个快速排序算法",
    "max_length": 300
}' \
http://localhost:5000/generate


#启动模型：
/usr/local/Ascend/mindie/latest/mindie-service/bin/mindieservice_daemon

#调用minder启动的大模型
curl --location 'http://localhost:25010/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
"model": "TopASK",
"messages": [{"role": "user", "content": "请使用python写一段快速排序代码"}],
"stream": true,
"stop": ["Observation", "Observation\n"]
}'

#安装python依赖：
ee
pip config list

pip install  scikit-learn  -i https://pypi.tuna.tsinghua.edu.cn/simple \
-d /data/backup/python3.11-site-packages/
pip download  scikit-learn  -i https://pypi.tuna.tsinghua.edu.cn/simple \
-d /data/backup/python3.11-site-packages/

pip download  scikit-learn  -d /data/backup/python3.11-site-packages/